<template>
  <div class="title-header">
    <div class="back" @click="backHandler">
      <i class="iconfont">&#xe628;</i>
    </div>
    <div class="title-field">二级</div>
    <div class="msg">
      <i class="iconfont">&#xe622;</i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TItleHeader',
  data () {
    return {
      title: '页面标签'
    }
  },
  created () {
    console.log(this)
  },
  methods: {
    backHandler () {
      this.$router.back()
    }
  }
}
</script>

<style lang="scss" scoped>
  .title-header {
    display: flex;
    align-items: center;
    height: 40px;
    .back {
      width: 60px;
      text-align: center;
    }
    .msg {
      width: 60px;
      text-align: center;
    }
    .title-field {
      flex: 1;
    }
  }
</style>
